const mongoose = require("mongoose");
mongoose.connect( 'mongodb://127.0.0.1:27017/frontend', {useNewUrlParser: true});
var membersSchema = new mongoose.Schema({
    name:String,
    age:String,
    like:String,
    state:Boolean
},
//去除版本号__v
{versionKey: false}
)
var membersModel = mongoose.model("members",membersSchema);
module.exports=membersModel;